﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WFL.Data
{
    [AttributeUsage(AttributeTargets.Class
        , AllowMultiple = true
        , Inherited = true)]
    public class TableAttribute : DefinitionAttribute
    {
        public string Provider 
        { 
            get; 
            private set; 
        }
        public string Name 
        { 
            get; 
            private set; 
        }

        public string Alias
        {
            get;
            set;
        }

        public TableAttribute(string provider, string name)
        {
            Provider = provider;
            Name = name;
        }

        public TableAttribute(string name)
            : this(null, name)
        {

        }
    }
}
